package com.lagou.edu.service.impl;

import com.lagou.edu.dao.UserDao;
import com.lagou.edu.pojo.User;
import com.lagou.edu.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 用户业务实现类
 * @author 陶肖寅
 * @version V1.0
 * @Package com.lagou.edu.service.impl
 * @date 2020-02-02 16:45
 * @Copyright © 2020-2021 城云科技(中国)有限公司
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserDao userDao;
    @Override
    public User getUser(String username, String password) {
        return userDao.findUserByUsernameAndPassword(username,password);
    }
}
